package models

type Diploma struct {
	BaseModel
	Id             int           `gorm:"primary_key"`
	Name           string        `gorm:"type:varchar(50);default:null" description:"名称"`
	AwardData      string        `gorm:"type:varchar(50);default:null" description:"获奖时间"`
	DiplomaTitleId int           `gorm:"type:int(10)" description:"称号id"`
	DiplomaTitle   *DiplomaTitle `gorm:"ForeignKey:DiplomaTitleId" description:"称号"`
	Address        string        `gorm:"type:text;default:null" description:"图片地址"`
	Address1       string        `gorm:"type:text;default:null" description:"图片地址"`
	Content        string        `gorm:"type:text;default:null" description:"时间简介"`
	Status         int           `gorm:"type:int(10);default:1" description:"状态 1：未上架，2：已上架"`
	CreateTime     string        `gorm:"type:varchar(255);default:null" description:"创建时间"`
}

type DiplomaTitle struct {
	Id   int    `gorm:"primary_key"`
	Name string `gorm:"type:varchar(50);default:null" description:"称号"`
}
